﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class ShopNPC : NPC
    {
        private string ShopType;

        public string shopType { get => ShopType; set => ShopType = value; }
        public ShopNPC(string name, NPCType nPCType):base(name,nPCType){ }
        public override void Speak()
        {
            Console.WriteLine("NPC：{0}，您需要哪些商品：{1}", this.Name, this.shopType);
            Console.WriteLine("1.武器 2.材料 3.食物");
        }
    }
}
